deltas: Allow processing of empty delta parts
authorDan Nicholson <nicholson@endlessm.com>
Sat, 30 Jul 2016 15:14:17 +0000 (10:14 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 31 Jul 2016 00:01:52 +0000 (00:01 +0000)
commit512090785e039e560f5e0df9b1e1db004298eeb6
tree1a027127f9d0d181cfa63d27b5b021179c7c26e4
parentedecae06ab65f139cddbb701cb37b672715bb176
deltas: Allow processing of empty delta parts

If a static delta is generated between 2 commits with the same content,
then the delta will contain 1 part with no checksums. While useless,
this is a valid delta that shouldn't raise an assertion. If the delta
part has no checksums, then there are no objects to recreate and the
processing can be skipped.

Closes: #420
Approved by: cgwalters
src/libostree/ostree-repo-static-delta-core.c
src/libostree/ostree-repo-static-delta-processing.c